]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix problem with app menu showing when leaving overview
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 28 Mar 2011 17:14:36 +0000 (13:14 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Tue, 29 Mar 2011 03:05:55 +0000 (23:05 -0400)
Since the opacity of the application menu is controlled by
it's _targetIsCurrent flag, we need to respect that when entering
and leaving the overview.

https://bugzilla.gnome.org/show_bug.cgi?id=645734

js/ui/panel.js

index 3ec9a3b4fb5ee48d1adef3b8411108327837c19b..8aa3265d8a859bea3b09df6c6e46b9ba9606fbe1 100644 (file)
@@ -300,6 +300,10 @@ AppMenuButton.prototype = {
 
         this._visible = true;
         this.actor.show();
+
+        if (!this._targetIsCurrent)
+            return;
+
         Tweener.removeTweens(this.actor);
         Tweener.addTween(this.actor,
                          { opacity: 255,
@@ -312,6 +316,11 @@ AppMenuButton.prototype = {
             return;
 
         this._visible = false;
+        if (!this._targetIsCurrent) {
+            this.actor.hide();
+            return;
+        }
+
         Tweener.removeTweens(this.actor);
         Tweener.addTween(this.actor,
                          { opacity: 0,